package com.liyang.springcloud.lb;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

/**
 * @description: 自定义轮训算法
 * @author: liyang
 * @date: 2023/12/26 14:52
 **/
public interface LoadBalancer {

    /**
     * @description: 获取轮询请求服务
     * @author: liyang
     * @date: 2023/12/26 15:26
     * @param: serviceInstanceList
     * @return: org.springframework.cloud.client.ServiceInstance
     **/
    ServiceInstance instance(List<ServiceInstance> serviceInstanceList);
}
